package at.tuwien.seminar.scrum1.view.titlepage;

import at.tuwien.seminar.scrum1.model.Bill;
import at.tuwien.seminar.scrum1.proxies.ReservationProxy;
import at.tuwien.seminar.scrum1.view.bill.list.BillList;
import at.tuwien.seminar.scrum1.view.reservation.list.ReservationList;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.link.Link;

import at.tuwien.seminar.scrum1.model.Customer;
import at.tuwien.seminar.scrum1.model.Room;

import at.tuwien.seminar.scrum1.view.customer.list.CustomerList;
import at.tuwien.seminar.scrum1.view.room.list.RoomList;

/**
 * First Sample Wicket WebPage
 * 
 * @author KimmelF
 * 
 */
public class TitlePage extends WebPage {

	public TitlePage() {
		add(new Link<Room>("roomLink") {

			@Override
			public void onClick() {
				setResponsePage(new RoomList());
			}

		});
		add(new Link<Customer>("customerLink") {

			@Override
			public void onClick() {
				setResponsePage(new CustomerList());
			}

		});

        add(new Link<Bill>("billLink") {

			@Override
			public void onClick() {
				setResponsePage(new BillList());
			}

		});

        add(new Link<Customer>("reservationLink") {

			@Override
			public void onClick() {
				setResponsePage(new ReservationList(ReservationProxy.getInstance().getAll()));
			}

		});
		
		
	}
}
